package com.ruoyi.system.domain.ro;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.valid.ValidInsertGroup;
import com.ruoyi.common.valid.ValidUpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 评论记录业务对象 bs_comment
 *
 * @author ruoyi
 * @date 2023-11-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "评论记录业务对象", description = "评论记录业务对象")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class BsCommentRO extends BaseEntity {

    @NotNull(message = "不能为空", groups = {ValidUpdateGroup.class})
    @ApiModelProperty(value = "id", hidden = true)
    private Long id;

    @ApiModelProperty(value = "strategy攻略", hidden = true)
    private String type;

    @ApiModelProperty(value = "创建人id", hidden = true)
    private Long createById;

    @NotBlank(message = "目标id不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "目标id:攻略游记id")
    private String aimId;

    @NotBlank(message = "内容不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "评论内容")
    private String content;


}
